package ogl.tests;

import static org.junit.Assert.*;
import ogl.Commando;

import org.junit.Test;

public class CommandoTest {

	@Test
	public void testMove() {
		Commando commando = new Commando(10, 10);
		commando.move(20, 20);
		assertTrue(commando.getX() == 20);
		assertTrue(commando.getY() == 20);
	}
	
	@Test
	public void testNegativeCoords(){
		Commando c = new Commando(-5, -10);
		assertFalse(c.getX()>= 0);
		assertFalse(c.getY() >=0);
	}

	@Test
	public void testCommando() {
		Commando c = new Commando(10, 10);
		assertNotNull(c);
	}

}
